package com.castle.fortress.admin.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.cms.dto.CmsRoleChannelDto;
import com.castle.fortress.admin.cms.entity.CmsRoleChannelEntity;

import java.util.List;

/**
 * cms栏目角色关联表 服务类
 *
 * @author castle
 * @since 2022-06-29
 */
public interface CmsRoleChannelService extends IService<CmsRoleChannelEntity> {

    /**
     * 分页展示cms栏目角色关联表列表
     * @param page
     * @param cmsRoleChannelDto
     * @return
     */
    IPage<CmsRoleChannelDto> pageCmsRoleChannel(Page<CmsRoleChannelDto> page, CmsRoleChannelDto cmsRoleChannelDto);


    /**
     * 展示cms栏目角色关联表列表
     * @param cmsRoleChannelDto
     * @return
     */
    List<CmsRoleChannelDto> listCmsRoleChannel(CmsRoleChannelDto cmsRoleChannelDto);

}
